<?php

use Illuminate\Routing\Router;

Admin::registerAuthRoutes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function (Router $router) {
    $router->get('auth/login', 'AuthController@getLogin');
    $router->post('auth/login', 'AuthController@postLogin');
    $router->get('/', 'HomeController@index');
    $router->resource('schools', 'SchoolsController');
    $router->resource('students', 'StudentsController');
    $router->resource('typhoon', 'TyphoonController');
    $router->resource('gamelog', 'GamelogsController');
    $router->resource('earthquake', 'EarthquakeController');
    $router->resource('etiquette', 'EtiquetteController');
    $router->resource('fire', 'FireController');
    $router->resource('aredu', 'AreduController');
    $router->get('statistic', 'StatisticController@index');
});
